import Login from '@/pages/login';
import Main from '@/pages/main';
import HomePage from '@/pages/main/pages/homepage';
import QaPage from '@/pages/main/pages/qa';
import VideoPage from '@/pages/main/pages/video';
import MinePage from '@/pages/main/pages/mine';
import SearchPage from '@/pages/search'
import SearcResulthPage from '@/pages/result'

export default [
  {
    path: '/',
    component: Main,
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: HomePage,
      },
      {
        path: '/qa',
        component: QaPage,
      },
      {
        path: '/video',
        component: VideoPage,
      },
      {
        path: '/mine',
        component: MinePage,
      },

    ],
  },
  {
    path: '/login',
    component: Login,
  },
  {
    path: '/search',
    component: SearchPage,
  },
  {
    path: '/result',
    component: SearcResulthPage,
  },
  // more routes here
];
